#include "CPicsWg.h"
#include <QPainter>
#include <QRect>

CPicsWg::CPicsWg(QWidget *parent)
	: QWidget(parent)
{
	m_pixMap = QPixmap("DSC03319.JPG");
}

CPicsWg::~CPicsWg()
{

}

void CPicsWg::SetPixMap(const QPixmap& map)
{
	m_pixMap = map;
}

void CPicsWg::paintEvent(QPaintEvent *event)
{
	QPainter painter(this);
	painter.setPen(Qt::NoPen);
	painter.setBrush(Qt::darkCyan);
	painter.drawRect(QRect(0, 0, this->width(), this->height()));
	//painter.drawPixmap(QRect(0, 0, this->width(), this->height()),m_pixMap);
	painter.setBrush(Qt::lightGray);
	QWidget::paintEvent(event);
}
